<%--
  Created by IntelliJ IDEA.
  User: Tang'ya'kang
  Date: 2023/5/11
  Time: 14:41
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>ManageHead</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-7ymO4nGrkm372HoSbq1OY2DP4pEZnMiA+E0F3zPr+JQQtQ82gQ1HPY3QIVtztVua" crossorigin="anonymous"></script>
        <%
            String basePath1=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
       %>
    <script src="https://code.jquery.com/jquery-3.6.4.min.js" integrity="sha256-oP6HI9z1XaZNBrJURtCoUT5SUnxFr8s3BzRl+cbzUq8=" crossorigin="anonymous"></script>
    <base href=<%=basePath1%>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
    <a class="navbar-brand" href="./client/bookServlet?action=PageByPageNo&Page=1">Only __ book</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarText">
        <ul class="navbar-nav mr-auto">
            <li class="nav-item active">
                <a class="nav-link disabled">欢迎进入后台管理系统</a>
            </li>
        </ul>

        <ul class="nav justify-content-end">
            <li class="nav-item">
                <a class="nav-link active" href="./manage/bookServlet?action=PageByPageNo&user_name=${sessionScope.User.username}&merchant_id=${sessionScope.User.id}&Page=1">图书管理</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="./orderServlet?action=SelectOrder&user_id=${sessionScope.User.id}&user_name=${sessionScope.User.username}&Page=1">订单管理</a>
            </li>
            <c:if test="${sessionScope.User.username.equals('root')}">
                <li class="nav-item">
                    <a class="nav-link" href="./accountManagementServlet?action=SelectAccountManagementByPage&Page=1">账号管理</a>
                </li>
            </c:if>
            <li class="nav-item">
                <a class="nav-link" href="./index.jsp">返回商城</a>
            </li>

            <li class="nav-item">
                <a class="nav-link disabled"><font color="red">${sessionScope.User.username}</font></a>
            </li>
        </ul>
    </div>

</nav>
</body>
</html>
